import 'package:Bible/http/manager.dart';

Future getBibleList() async {
  String url = "/base/bible/";
  try {
    var response = await HttpUtils.request(url, method: HttpUtils.GET);
    return response['data'];
  } catch (e) {
    print(e);
  }
}

Future getBibleBookDirectory(String id) async {
  String url = "/base/bible/directory?id=$id";
  try {
    var response = await HttpUtils.request(url, method: HttpUtils.GET);
    return response['data'];
  } catch (e) {
    print(e);
  }
}

Future getBibleDetail(String id) async {
  String url = "/base/bible/detail?id=$id";
  try {
    var response = await HttpUtils.request(url, method: HttpUtils.GET);
    return response['data'];
  } catch (e) {
    print(e);
  }
}

Future searchBible(String key) async {
  String url = "/base/bible/search?key=$key";
  try {
    var response = await HttpUtils.request(url, method: HttpUtils.GET);
    return response['data'];
  } catch (e) {
    print(e);
  }
}
